<html lang="#{localeBean.language}"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:dt="http://java.sun.com/jsf/composite/components"
      xmlns:p="http://primefaces.prime.com.tr/ui">

        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
            <title>New Pessoa</title>
            <link rel="stylesheet" type="text/css" href="/prp/jsfcrud.xhtml" />
        </head>
        <body>
        <h:panelGroup id="messagePanel" layout="block">
            <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
        </h:panelGroup>
        <h1>New Pessoa</h1>
        <h:form>
            <h:inputHidden id="validateCreateField" validator="#{pessoa.validateCreate}" value="value"/>
            <h:panelGrid columns="2">
                <h:outputText value="Cpf:"/>
                <h:inputText id="cpf" value="#{pessoa.pessoa.cpf}" title="Cpf" />
                <h:outputText value="Nome:"/>
                <h:inputText id="nome" value="#{pessoa.pessoa.nome}" title="Nome" />

            </h:panelGrid>
            <br />
            <h:commandLink action="#{pessoa.create}" value="Create"/>
            <br />
            <br />
            <h:commandLink action="#{pessoa.listSetup}" value="Show All Pessoa Items" immediate="true"/>
            <br />

        </h:form>
        </body>
    </html>

